import VueRouter from "vue-router";

export const enhance = function(prop){
	const nativeFn = VueRouter.prototype[prop];
	VueRouter.prototype[prop] = function(path,success,error=()=>{}){
		return nativeFn.call(this,path,success,error);
	}
}



